package com.hy.lightning.boot.web.filter;

import java.io.IOException;

import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;

import com.hy.lightning.boot.web.servlet.bean.DefaultHttpServletRequest;
import com.hy.lightning.boot.web.servlet.bean.DefaultHttpServletResponse;

public interface FilterHandler {
	
	boolean filter(DefaultHttpServletRequest defaultHttpServletRequest, DefaultHttpServletResponse defaultHttpServletReqsponse);
	
	byte[] responseFilter(DefaultHttpServletResponse response, Object date) throws JsonGenerationException, JsonMappingException, IOException;
	
}
